import React, { useContext, useEffect, useRef, useState, useReducer } from 'react';

// 组件
import Marquee from './components/Marquee';
import Store from '@/reducer/store/index';


const TouchBattle = React.memo(() => {
  const {
    state,
    dispatch
  } = useContext(Store);


  const handleClick = ()=>{
    dispatch({type:"updateToken",data:"343434"})
  }

  return (
    <div>
      {state.userInfo.token}
      <span onClick={handleClick}>点击</span>

      <Marquee marqueeWrap={{ width: '200px', backgroundColor: '' }}>dsdsdsd</Marquee>

    </div>
  );
});

export default TouchBattle;
